﻿<UserControl x:Class="Pellared.SalaryBook.Views.DeleteSalaryView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:properties="clr-namespace:Pellared.SalaryBook.Properties"
             xmlns:ViewModels="clr-namespace:Pellared.SalaryBook.ViewModels"
             mc:Ignorable="d" 
             d:DesignHeight="100" d:DesignWidth="300" d:DataContext="{d:DesignInstance ViewModels:DeleteSalaryDialogViewModel}">
    <DockPanel Margin="10">
        <StackPanel
            DockPanel.Dock="Bottom"
            Orientation="Horizontal"
            HorizontalAlignment="Right">

            <Button 
                Content="{x:Static properties:Resources.DeleteSalaryText}" 
                Height="24" Width="75" HorizontalAlignment="Left"
                Command="{Binding DeleteCommand}"/>
            <Button 
                Margin="10 0 0 0"
                Content="{x:Static properties:Resources.CancelText}"
                Height="24" Width="75" HorizontalAlignment="Left"
                Command="{Binding CancelCommand}"/>
        </StackPanel>

        <TextBlock 
            Margin="10" HorizontalAlignment="Center" 
            Text="{Binding Message}" />
    </DockPanel>
</UserControl>
